package com.sangeng.controller;


import com.sangeng.annotation.SystemLog;
import com.sangeng.domain.ResponseResult;
import com.sangeng.service.CategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 分类表(Category)表控制层
 *
 * @author makejava
 * @since 2024-08-11 18:13:29
 */
@RestController
@RequestMapping("/category")
@Api(tags = "分类管理", description = "分类管理")
public class CategoryController {


    /**
     * 服务对象
     */
    @Resource
    private CategoryService categoryService;


    /**
     * 展示分类列表
     * @return
     */
    @SystemLog(businessName = "分类列表")
    @GetMapping("/getCategoryList")
    @ApiOperation(value = "展示分类列表")
    public ResponseResult getCategoryList(){
        ResponseResult result=categoryService.getCategoryList();
        return result;
    }

}

